<!-- Java Script -->
<script src="__PLUGIN_TMPL__/public/assets/js/bootstrap.min.js"></script>
<script src="__PLUGIN_TMPL__/public/assets/js/datepicker.js"></script>
<script src="__PLUGIN_TMPL__/public/assets/js/main.js"></script>
<!---------------------------------------------------------- 自定义 START ---------------------------------------------------------->
<script type="text/javascript">
    //全局变量
    var GV = {
        ROOT: "__ROOT__/",
        WEB_ROOT: "__WEB_ROOT__/",
        JS_ROOT: "static/js/",
        TMPL_ASSETS: "__TMPL__/public/assets/"
    };

    jQuery.migrateTrace = false;
</script>
<script src="__STATIC__/js/wind.js"></script>
<script>
    /**
     * 查看图片对话框
     * @param img 图片地址
     */
    function imgPreviewFront(img) {
        Wind.css('layer');
        Wind.use("layer", function() {
            layer.photos({
                photos: {
                    "title": "", //相册标题
                    "id": 'image_preview', //相册id
                    "start": 0, //初始显示的图片序号，默认0
                    "data": [ //相册包含的图片，数组格式
                        {
                            "alt": "",
                            "pid": 666, //图片id
                            "src": img, //原图地址
                            "thumb": img //缩略图地址
                        }
                    ]
                } //格式见API文档手册页
                ,
                anim: 5, //0-6的选择，指定弹出图片动画类型，默认随机
                shadeClose: true,
                // skin: 'layui-layer-nobg',
                shade: [0.5, '#000000'],
                shadeClose: true,
            })
        });
    }
</script>

<!----------------------------------------------------------  自定义 END  ---------------------------------------------------------->